/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

import java.io.Serializable;
import java.util.List;


/**
 *
 * @author Andrés Felipe
 */
public class Pyme implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer identification;
    private String name;
    private String address;
    private List<Supplier> supplierList;
    private List<EmailPyme> emailPymeList;
    private List<Product> productList;
    private List<Customer> customerList;

    public Pyme() {
    }

    public Pyme(Integer identification) {
        this.identification = identification;
    }

    public Pyme(Integer identification, String name, String address) {
        this.identification = identification;
        this.name = name;
        this.address = address;
    }

    public Integer getIdentification() {
        return identification;
    }

    public void setIdentification(Integer identification) {
        this.identification = identification;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }


    public List<Supplier> getSupplierList() {
        return supplierList;
    }

    public void setSupplierList(List<Supplier> supplierList) {
        this.supplierList = supplierList;
    }

   
    public List<EmailPyme> getEmailPymeList() {
        return emailPymeList;
    }

    public void setEmailPymeList(List<EmailPyme> emailPymeList) {
        this.emailPymeList = emailPymeList;
    }

    
    public List<Product> getProductList() {
        return productList;
    }

    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }


    public List<Customer> getCustomerList() {
        return customerList;
    }

    public void setCustomerList(List<Customer> customerList) {
        this.customerList = customerList;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (identification != null ? identification.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Pyme)) {
            return false;
        }
        Pyme other = (Pyme) object;
        if ((this.identification == null && other.identification != null) || (this.identification != null && !this.identification.equals(other.identification))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entities.Pyme[ identification=" + identification + " ]";
    }
    
}
